<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h3>영화 상세정보</h3>
<hr align="left" width="150">
<center>
<table class="movieContent">
	<tr>
		<td width="150px" rowspan="4"><img src="${initParam.root }${requestScope.mContentMap.movieContent.posterPath }" width="150px" height="200px"></td>
		<td width="70">영화 제목</td>
		<td>${requestScope.mContentMap.movieContent.title }</td>
	</tr>
	<tr>
		<td>장르</td>
		<td>${requestScope.mContentMap.movieContent.genre }</td>
	</tr>
	<tr>
		<td>스토리</td><td align="left">${requestScope.mContentMap.movieContent.story }</td>
	</tr>
	<tr>
		<td>수상정보</td><td>${requestScope.mContentMap.awardContent }</td>
	</tr>
	<tr>
		<td colspan="3">예고편</td>
	</tr>
	<tr>
		<td colspan="3">
			<iframe width="500" height="300" src="//www.youtube.com/embed/${requestScope.mContentMap.movieContent.trailerPath }" frameborder="0" allowfullscreen></iframe>
		</td>
	</tr>
	<tr>
		<td align="center" colspan="3">
			<c:choose>
				<c:when test="${param.flag==0 }">
					<a href="${initParam.root}movie/showingList.do"><img src="${initParam.root}/img/list_btn.jpg"></a>
				</c:when>
				<c:when test="${param.flag==1 }">
					<a href="${initParam.root}movie/soonList.do"><img src="${initParam.root}/img/list_btn.jpg"></a>
				</c:when>
				<c:otherwise>
					<a href="${initParam.root}movie/directorList.do"><img src="${initParam.root}/img/list_btn.jpg"></a>
				</c:otherwise>
			</c:choose>
		</td>
	</tr>
</table>
</center>